﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Ycm20250401.Service._20250418
{
    /// <summary>
    /// 验证密码接口
    /// </summary>
    public interface IValidatePassword
    {

        //加密密码
        Task<string> EncryptPassword(string password);


        /// <summary>
        /// 验证密码
        /// </summary>
        /// <param name="password"></param>
        /// <param name="encryptedPassword"></param>
        /// <returns></returns>
        Task<bool> ValidatePassword(string password, string encryptedPassword);
    }
}
